var request = require('request')
var fs = require('fs')

request('https://www.baidu.com').pipe(fs.createWriteStream('baidu.txt'))